﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="IndividualAccountPopup.aspx.vb" Inherits="KYC_IndividualAccountPopup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript">

       /* window.onload = function () {
            window.opener.document.body.disabled = true;
        }


        window.onunload = function () {
            window.opener.document.body.disabled = false;
        }*/
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="control" >
                <tr class="thai5n" valign="top" >
                    <td rowspan="3" width="1%" valign="bottom"><img src="../img/tl.jpg" width="20" height="20"  alt=""/>
                    </td>
                    <td width="90%" align="right" valign="bottom" colspan="3">
                      
                      
                    </td>
                </tr>
                   <tr class="thai5n">
                        <td width="90%" align="left" valign="bottom" rowspan="2"><span class="thai13b">
                          <asp:Image ID="imgHead" runat="server" Height="30px" ImageUrl="~/img/ghb_.GIF" />
                            <asp:Label ID="lblForm" runat="server" CssClass="control" ForeColor="#999999" Height="25px"></asp:Label>
                                                                    </span>
                            <asp:Label ID="lblPage" runat="server" CssClass="control" ForeColor="#999999"  Height="25px" Text="รายการข้อมูลบัญชี"></asp:Label>
                        </td>
                        <td align="right" valign="bottom" style="text-align: right;" rowspan="2">
                            
                        </td>
                        <td align="right" valign="top" style="text-align: right">
                            &nbsp;</td>
                        <td align="right" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="1%" align="right" valign="top"><img src="../img/pic2.jpg" alt=""/>
                      </td>
                      <td width="1%" align="right" style="background-image:url(../img/bg_r.jpg)" valign="top">
                      <img src="../img/tr.jpg" width="20" height="20" alt=""/></td>
                    </tr>
                    <tr>
                        <td style="background-image:url(../img/bg_l.jpg)">&nbsp;</td>
                        <td colspan="3" valign="top"> 
                            <asp:Panel ID="panelAccountApp" runat="server" Visible="true">
                                <table style="width: 100%;" class="control" border="0" cellpadding="0" cellspacing="0">
                                    <tr bgcolor="#FF9933">
                                        <td colspan="1" style="text-align: center">
                                            <strong></strong>
                                        </td>
                                    </tr>                                    
                                    <tr>                                        
                                        <td style="text-align: right;">
                                            <asp:GridView ID="grdShowAccount" runat="server" AutoGenerateColumns="False" 
                                                    CellPadding="4" CssClass="control" ForeColor="#333333" Height="16px" 
                                                    ShowHeaderWhenEmpty="True" Style="margin-right: 0px" Width="100%"
                                                    OnRowDataBound="AccountGridView_RowDataBound" >
                                                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                                    <Columns>
                                                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/img/icon/select_icon.gif"
                                                            ShowSelectButton="True">
                                                            <ItemStyle Width="60px" HorizontalAlign="Center" />
                                                        </asp:CommandField>
                                                        <asp:BoundField DataField="AccountNO" HeaderText="เลขที่บัญชี" 
                                                            NullDisplayText=" ">
                                                        <ItemStyle HorizontalAlign="Left" Width="030px" />
                                                        </asp:BoundField>

                                                         <asp:TemplateField HeaderText="ชื่อบัญชี">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblAccountName" runat="server" Text='<%# Eval("ACCOUNTNAME") %>'></asp:Label>
                                                                <asp:Label ID="lblAnswerType" runat="server" Text='<%# eval("ANSWERTYPE") %>' 
                                                                    Visible="False"></asp:Label>
                                                                <asp:Label ID="lblKYCSeq" runat="server" Text='<%# eval("KYCSEQ") %>' 
                                                                    Visible="False"></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Left" Width="200px" />
                                                        </asp:TemplateField>

                                                        <asp:BoundField DataField="F_ACCOUNT_CLOSE" HeaderText="สถานะบัญชี" NullDisplayText=" ">
                                                            <ItemStyle HorizontalAlign="center" Width="80px" />
                                                        </asp:BoundField>

                                                        <asp:BoundField DataField="ACCT_OPN_DATE" HeaderText="วันที่เปิดบัญชี"
                                                            NullDisplayText=" ">
                                                        <ItemStyle HorizontalAlign="center" Width="80px" />
                                                        </asp:BoundField>

                                                         <asp:BoundField DataField="ACCT_STATE" HeaderText="ประเภท"
                                                            NullDisplayText=" ">
                                                        <ItemStyle HorizontalAlign="center" Width="80px" />
                                                        </asp:BoundField>

                                                        <asp:BoundField DataField="OWNER_STATE" HeaderText="สถานะเจ้าของ"
                                                            NullDisplayText=" ">
                                                        <ItemStyle HorizontalAlign="center" Width="80px" />
                                                        </asp:BoundField>

                                                        <asp:BoundField DataField="DEPUPDATE" HeaderText="ประเภทผลิตภัณฑ์"
                                                            NullDisplayText=" ">
                                                        <ItemStyle HorizontalAlign="center" Width="120px" />
                                                        </asp:BoundField>
                                                   
                                                        <asp:TemplateField HeaderText="สถานะสมบูรณ์" Visible="False">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label86" runat="server" Text='<%# eval("kyccomplete") %>'></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" Width="100px" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="การอนุมัติ" Visible="False">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label38" runat="server" Text='<%# eval("APPROVECODE") %>'></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="approveno" HeaderText="ผู้อนุมัติ" Visible="False">
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="updateby" HeaderText="ผู้บันทึก" Visible="False">
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="branchcode" HeaderText="สาขา" Visible="False">
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        </asp:BoundField>
                                                        
                                                    </Columns>
                                                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                                                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                                    <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="White" />
                                                    <AlternatingRowStyle BackColor="White" />
                                                </asp:GridView>
                                                
                                        </td>
                                    </tr>
                                    <tr>
                                        
                                        <td style="width: 150px; text-align: left;">
                                            <asp:Label ID="lblCount_Show_ACCT" runat="server" Text="0"></asp:Label>
                                            &nbsp;รายการ&nbsp;&nbsp;&nbsp; </td>                                        
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                        <td align="right" style="background-image:url(../img/bg_r.jpg)">&nbsp;</td>
                    </tr>
                    <tr>
                      <td style="background-image:url(../index_files/bg_b.jpg)"><img src="../img/bl.jpg" width="20" height="20"  alt=""/></td>
                      <td colspan="3" style="background-image:url(../img/bg_b.jpg)">&nbsp;</td>
                      <td align="right" valign="top"><img src="../img/br.jpg" width="20" height="20"  alt=""/></td>
                    </tr>
 
    </table>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="control" >
                <tr class="thai5n" valign="top" >
                    <td rowspan="3" width="1%" valign="bottom"><img src="../img/tl.jpg" width="20" height="20"  alt=""/>
                    </td>
                    <td width="90%" align="right" valign="bottom" colspan="3">
                      
                      
                    </td>
                </tr>
                   <tr class="thai5n">
                        <td width="90%" align="left" valign="bottom" rowspan="2"><span class="thai13b">
                          <asp:Image ID="Image1" runat="server" Height="30px" ImageUrl="~/img/ghb_.GIF" />
                            <asp:Label ID="Label1" runat="server" CssClass="control" ForeColor="#999999" Height="25px"></asp:Label>
                                                                    </span>
                            <asp:Label ID="Label2" runat="server" CssClass="control" ForeColor="#999999"  Height="25px" Text="รายการข้อมูลผู้รับผลประโยชน์ที่แท้จริง"></asp:Label>
                        </td>
                        <td align="right" valign="bottom" style="text-align: right;" rowspan="2">
                            
                        </td>
                        <td align="right" valign="top" style="text-align: right">
                            &nbsp;</td>
                        <td align="right" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="1%" align="right" valign="top"><img src="../img/pic2.jpg" alt=""/>
                      </td>
                      <td width="1%" align="right" style="background-image:url(../img/bg_r.jpg)" valign="top">
                      <img src="../img/tr.jpg" width="20" height="20" alt=""/></td>
                    </tr>
                    <tr>
                        <td style="background-image:url(../img/bg_l.jpg)">&nbsp;</td>
                        <td colspan="3" valign="top"> 
                            <asp:Panel ID="panelgrdBo" runat="server" Visible="true">
                                <table style="width: 100%;" class="control" border="0" cellpadding="0" cellspacing="0">
                                    <tr bgcolor="#FF9933">
                                        <td colspan="1" style="text-align: center">
                                            <strong></strong>
                                        </td>
                                    </tr>
                                    <tr>                                        
                                        <td style="text-align: right;">
                                            <asp:GridView ID="grdBo" runat="server" AutoGenerateColumns="False" 
                                                CellPadding="4" ForeColor="#333333" ShowHeaderWhenEmpty="True" 
                                                Width="100%">
                                                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                                <Columns>
                                        
                                                    <asp:CommandField ButtonType="Image" Visible="false"
                                                        SelectImageUrl="~/img/icon/select_icon.gif" ShowSelectButton="True">
                                                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                                                    </asp:CommandField>

                                                    <asp:TemplateField HeaderText="เลขที่บัญชี">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbACCOUNTNO_Bo" runat="server" Text='<%# eval("ACCOUNTNO") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                                                    </asp:TemplateField>
                                        
                                                    <asp:TemplateField HeaderText="ชื่อลูกค้า">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbTHFIRSTNAME_Bo" runat="server" Text='<%# eval("THFIRSTNAME") %>'></asp:Label>
                                                            <asp:Label ID="Label74" runat="server" Text=" "></asp:Label>
                                                            <asp:Label ID="lbTHLASTNAME_Bo" runat="server" Text='<%# eval("THLASTNAME") %>'></asp:Label>
                                                            <headerstyle horizontalalign="Center" />
                                                            <itemstyle horizontalalign="left" />
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle Width="200px" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="เลขที่บัตรประชาชน">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbUNIQUEID_Bo" runat="server" Text='<%# eval("UNIQUEID") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="ความสัมพันธ์กับเจ้าของบัญชี">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbACC_OWN_RELATION_Bo" runat="server" Text='<%# eval("ACC_OWN_RELATION") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="ผลการตรวจกรอง">
                                                        <HeaderStyle HorizontalAlign="Center" Width="120px" />
                                                        <ItemStyle HorizontalAlign="Center" Width="120px" />
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbFILTER_RESULT_Bo" runat="server" Text='<%# eval("FILTER_RESULT") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                                                        <ItemStyle HorizontalAlign="Center" Width="100px" />
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="ระดับความเสี่ยง">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbRISK_LEVEL_Bo" runat="server" Text='<%# eval("RISK_LEVEL") %>'></asp:Label>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                        <ItemStyle HorizontalAlign="Center" Width="50px" />
                                                    </asp:TemplateField>
                                                    <asp:CommandField ButtonType="Image" HeaderText="รายละเอียด" SelectImageUrl="~/img/icon/icon_list (2).gif"
                                                        ShowSelectButton="True" Visible="False">
                                                        <ItemStyle Width="60px" HorizontalAlign="Center" />
                                                    </asp:CommandField>                                                    
                                                </Columns>
                                                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                                <PagerSettings Mode="NumericFirstLast" />
                                                <PagerStyle BackColor="#FFCC66" CssClass="cssPager" ForeColor="#333333" 
                                                    HorizontalAlign="Center" />
                                                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                                <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="White" />
                                                <AlternatingRowStyle BackColor="White" />
                                            </asp:GridView>
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblCount_grdBo" runat="server" Text="0"></asp:Label>
                                                &nbsp;รายการ
                                        </td>
                                    </tr>                                    
                                </table>
                            </asp:Panel>
                        </td>
                        <td align="right" style="background-image:url(../img/bg_r.jpg)">&nbsp;</td>
                    </tr>
                    <tr>
                      <td style="background-image:url(../index_files/bg_b.jpg)"><img src="../img/bl.jpg" width="20" height="20"  alt=""/></td>
                      <td colspan="3" style="background-image:url(../img/bg_b.jpg)">&nbsp;</td>
                      <td align="right" valign="top"><img src="../img/br.jpg" width="20" height="20"  alt=""/></td>
                    </tr>
 
    </table>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="control" >
                <tr class="thai5n" valign="top" >
                    <td rowspan="3" width="1%" valign="bottom"><img src="../img/tl.jpg" width="20" height="20"  alt=""/>
                    </td>
                    <td width="90%" align="right" valign="bottom" colspan="3">
                      
                      
                    </td>
                </tr>
                   <tr class="thai5n">
                        <td width="90%" align="left" valign="bottom" rowspan="2"><span class="thai13b">
                          <asp:Image ID="Image2" runat="server" Height="30px" ImageUrl="~/img/ghb_.GIF" />
                            <asp:Label ID="Label3" runat="server" CssClass="control" ForeColor="#999999" Height="25px"></asp:Label>
                                                                    </span>
                            <asp:Label ID="Label4" runat="server" CssClass="control" ForeColor="#999999"  Height="25px" Text="รายการข้อมูลบัญชีร่วม"></asp:Label>
                        </td>
                        <td align="right" valign="bottom" style="text-align: right;" rowspan="2">
                            
                        </td>
                        <td align="right" valign="top" style="text-align: right">
                            &nbsp;</td>
                        <td align="right" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="1%" align="right" valign="top"><img src="../img/pic2.jpg" alt=""/>
                      </td>
                      <td width="1%" align="right" style="background-image:url(../img/bg_r.jpg)" valign="top">
                      <img src="../img/tr.jpg" width="20" height="20" alt=""/></td>
                    </tr>
                    <tr>
                        <td style="background-image:url(../img/bg_l.jpg)">&nbsp;</td>
                        <td colspan="3" valign="top"> 
                            <asp:Panel ID="panel1" runat="server" Visible="true">
                                <table style="width: 100%;" class="control" border="0" cellpadding="0" cellspacing="0">
                                    <tr bgcolor="#FF9933">
                                        <td colspan="1" style="text-align: center">
                                            <strong></strong>
                                        </td>
                                    </tr>
                                    <tr>                                        
                                        <td style="text-align: right;">
                                            <asp:GridView ID="grdCo_Account" runat="server" AutoGenerateColumns="False" 
                                                CellPadding="4" ForeColor="#333333" ShowHeaderWhenEmpty="True" 
                                                Width="100%">
                                                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                                <Columns>
                                                    <asp:BoundField DataField="ACCOUNTNO" HeaderText="เลขที่บัญชี">
                                                    <ItemStyle HorizontalAlign="Center" Width="100" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="ACCOUNTNAME" HeaderText="ชือบัญชี">
                                                    <ItemStyle HorizontalAlign="Center" Width="300px" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="CUSTSEQ" HeaderText="รหัสลูกค้า">
                                                    <ItemStyle HorizontalAlign="Center" Width="150px" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="CUSTNAME" HeaderText="ชื่อลูกค้า">
                                                    <ItemStyle HorizontalAlign="Center" Width="250px" />
                                                    </asp:BoundField>
                                                      <asp:BoundField DataField="KYCDATE" HeaderText="วันทื่เปิดบัญชี">
                                                    <ItemStyle HorizontalAlign="Center" Width="250px" />
                                                    </asp:BoundField>                                        
                                                </Columns>
                                                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                                <PagerSettings Mode="NumericFirstLast" />
                                                <PagerStyle BackColor="#FFCC66" CssClass="cssPager" ForeColor="#333333" 
                                                    HorizontalAlign="Center" />
                                                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                                <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="White" />
                                                <AlternatingRowStyle BackColor="White" />
                                            </asp:GridView>
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblCount_grdCo_Account" runat="server" Text="0"></asp:Label>
                                                &nbsp;รายการ
                                        </td>
                                    </tr>                                    
                                </table>
                            </asp:Panel>
                        </td>
                        <td align="right" style="background-image:url(../img/bg_r.jpg)">&nbsp;</td>
                    </tr>
                    <tr>
                      <td style="background-image:url(../index_files/bg_b.jpg)"><img src="../img/bl.jpg" width="20" height="20"  alt=""/></td>
                      <td colspan="3" style="background-image:url(../img/bg_b.jpg)">&nbsp;</td>
                      <td align="right" valign="top"><img src="../img/br.jpg" width="20" height="20"  alt=""/></td>
                    </tr>
 
    </table>

    </form>
</body>
</html>
